package com.webside.front.detail.service;

import java.util.List;
import java.util.Map;

import com.webside.front.common.model.BSeries;
import com.webside.front.common.model.BVideo;
import com.webside.front.common.model.Bdictionary;
import com.webside.front.common.model.PBanner;
import com.webside.front.common.model.RComment;
public interface IDetailService {
	
	//查询轮播图根据id播放
    public List<PBanner>selectBannerById(Integer id);
	//查询剧集
	BSeries selectSeriesById(Integer id);
	//详细页面剧集选择
    List<BVideo> selectVideo(BVideo bVideo);
    List<BVideo> selectVideoBySeriesId(Integer seriesId);
    //显示视频简介等信息
    BVideo showVideoMsg(Integer videoId);
    //详细页 看过此片的还喜欢
    List<BSeries> selectMayLike(BSeries bSeries);
    //排行推荐
    List<BSeries> selectMayChannel(BSeries record);
    
    
    //点赞
    Integer like(Integer videoId);
    // 给评论点赞
    int LikeRComment(RComment record);
    //匿名点评
    int insertComment(RComment record);
    //用户点评
    int insertUserComment(RComment record);
    //详情页面 查询评论
    List<RComment> selectRComment(Integer seriesId,Integer pageNo) throws Exception;
    List<RComment> selectInfoCommentByCondition(Map<String, Object> condition);
    List<RComment> selectRCommentByVideoId(Integer seriesId) throws Exception;
    //获取父级评论数
    int CommentCount(Integer videoId);
    //获取子集评论数
    int ReplyCount(Integer commentId);
  //详情页面 查询回复评论
    List<RComment> selectReplyComment(Integer videoId ,Integer pageNo ,Integer commentId) throws Exception;
    //详情页面 用户撤销自己评论
    int delectRComment(RComment rcomment);
    //详情页面 举报评论
    int reportRComment(RComment rcomment);
    //播放次数累加
    Integer play(BVideo video);
    
    //查询子评论
    List<RComment> selectByVideo(Integer videoId);
    //增加子评论数
   public int addCount(RComment record);
   //查询关键词
   List<Bdictionary> selectKeywords();
   //根据对象查
public RComment selectRCommentByEntity(RComment comment);
  
   
}

